<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Demo</title>
  <link rel="stylesheet" href="./index.css">
  <script src="./dist/index.js"></script>

  <style>
    .box {
      width: 800px;
      height: 400px;
      margin: 0 auto;
      margin-top: 150px;
      border: solid 1px #1C86F7;
      position: relative;
    }
  </style>
</head>
<body>
  <div class="box" id="box"></div>
<script>
  onload = () => {
    const list = [
      { src: 'https://s1.ax1x.com/2020/03/12/8ejHx0.png' },
      { src: 'https://s1.ax1x.com/2020/03/12/8ej72q.jpg' },
      { src: 'https://s1.ax1x.com/2020/03/12/8evCxx.png' },
      { src: 'https://s1.ax1x.com/2020/03/12/8evBLT.jpg' }
    ]
    viewer = new ImageViewer(list, {
      container: document.getElementById('box'),
      canEscClose: true,
      step: 0.4,
      className: 'test',
      // toolbars: ['zoom-in', 'reset', 'zoom-out']
    })
  }
</script>
</body>
</html>